package com.anywhere.freightman.order.dao;

import com.anywhere.freightman.common.BaseMapper;
import com.anywhere.freightman.order.model.AddressBookModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AddressBookDao extends BaseMapper<AddressBookModel> {
    List<AddressBookModel> getList(@Param("companyId") Long companyId);

    AddressBookModel getByTel(@Param("tel")String tel);
}
